package com.ruoyi.member.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.member.mapper.MessageSendMapper;
import com.ruoyi.member.domain.MessageSend;
import com.ruoyi.member.service.IMessageSendService;

/**
 * 通知消息Service业务层处理
 * 
 * @author zhaogang
 * @date 2024-07-21
 */
@Service
public class MessageSendServiceImpl implements IMessageSendService 
{
    @Autowired
    private MessageSendMapper messageSendMapper;

    /**
     * 查询通知消息
     * 
     * @param messageId 通知消息主键
     * @return 通知消息
     */
    @Override
    public MessageSend selectMessageSendByMessageId(Long messageId)
    {
        return messageSendMapper.selectMessageSendByMessageId(messageId);
    }

    /**
     * 查询通知消息列表
     * 
     * @param messageSend 通知消息
     * @return 通知消息
     */
    @Override
    public List<MessageSend> selectMessageSendList(MessageSend messageSend)
    {
        return messageSendMapper.selectMessageSendList(messageSend);
    }

    /**
     * 新增通知消息
     * 
     * @param messageSend 通知消息
     * @return 结果
     */
    @Override
    public int insertMessageSend(MessageSend messageSend)
    {
        return messageSendMapper.insertMessageSend(messageSend);
    }

    /**
     * 修改通知消息
     * 
     * @param messageSend 通知消息
     * @return 结果
     */
    @Override
    public int updateMessageSend(MessageSend messageSend)
    {
        return messageSendMapper.updateMessageSend(messageSend);
    }

    /**
     * 批量删除通知消息
     * 
     * @param messageIds 需要删除的通知消息主键
     * @return 结果
     */
    @Override
    public int deleteMessageSendByMessageIds(Long[] messageIds)
    {
        return messageSendMapper.deleteMessageSendByMessageIds(messageIds);
    }

    /**
     * 删除通知消息信息
     * 
     * @param messageId 通知消息主键
     * @return 结果
     */
    @Override
    public int deleteMessageSendByMessageId(Long messageId)
    {
        return messageSendMapper.deleteMessageSendByMessageId(messageId);
    }
}
